package com.hoas.api.core.entity;

import java.io.Serializable;

/**
 * 用户授权令牌管理
 * @author ZhangQingmu
 * @date   2016年10月23日
 *
 */
public class UserToken implements Serializable {

	/**
	 * 用户唯一标识
	 */
	private String user;
	
	/**
	 * 用户操作令牌
	 */
	private String accessToken;
	
	/**
	 * 用户更新令牌
	 */
	private String refreshToken;
	
	/**
	 * 用户令牌失效时间（分）
	 */
	private long expireTime;

	public UserToken(String user, String accessToken, String refreshToken) {
		this.user = user;
		this.accessToken = accessToken;
		this.refreshToken = refreshToken;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}

}
